package cn.xpg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xpg.entity.Order;

public interface OrderMapper {
	// 新增订单
	public int addOrder(Order order);

	// 删除订单
	public int deleteOrder(@Param("order_id") int order_id);

	// 查询订单
	public List<Order> getOrderList(@Param("order_id") String order_id,
			@Param("order_createtime") String order_createtime, @Param("order_updatetime") String order_updatetime,
			@Param("currentPageNo") int currentPageNo, @Param("pageSize") int pageSize);

	// 查询订单行数
	public Object getOrderCount(@Param("order_id") String order_id, @Param("order_createtime") String order_createtime,
			@Param("order_updatetime") String order_updatetime);

	// 获取订单Id
	public Order getOrderId(@Param("order_id") int order_id);

	// 修改订单
	public int updateOrder(Order order);
}
